#include <iostream>
#include <cstdio>
#include <cmath>

#include "Sigmod.h"
#include "QPerceptron.h"
#include "QMLPNet.h"

using namespace std;

int main1(int argc, char ** argv)
{

    std::vector<int> nulltmp;
    nulltmp.push_back(10);
    QMLPNet * net = new QMLPNet(2,1,1,nulltmp,0.5);
    net->RandomInit();

    std::vector<double> input;
    input.push_back(1);
    input.push_back(2);
    std::vector<double> t;
    t.push_back(0.5);

    for (int i = 0; i < 100; ++i)
    {
        net->Train(input,t);

        std::cout << net->Simulate(input)[0] << endl;
    }

    return 1;
}